package com.example.sync.pojo;

import com.example.sync.datamask.Sensitive;
import com.example.sync.datamask.SensitiveStrategy;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author gaofeng
 * @date 2022年07月03日 17:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
@Accessors(chain = true)
public class User implements Serializable {
    private Integer userId ;
    @Sensitive(strategy = SensitiveStrategy.USERNAME)
    private String userName ;
    @Sensitive(strategy = SensitiveStrategy.PHONE)
    private String phone ;
}
